# Adjust the run address to match the .org in the source code

all: TinyBasic.mon

TinyBasic.mon: TinyBasic.bin
	bintomon -v -l 0x8000 TinyBasic.bin >TinyBasic.mon

TinyBasic.bin: TinyBasic.o
	ld65 -t none -vm -m TinyBasic.map -o TinyBasic.bin TinyBasic.o

TinyBasic.o: TinyBasic.asm
	ca65 -g -l TinyBasic.lst --feature labels_without_colons -o TinyBasic.o TinyBasic.asm

clean:
	$(RM) *.o *.lst *.map *.bin

distclean: clean
